<?php

namespace App\Utils;

use Illuminate\Support\Facades\DB;

class TestData
{
    /**
     * 删除测试用户
     */
    public static function deleteTestUsers()
    {
        $departments = [
            'dk1', 'dk2', 'dk3', 'dk4', 'dk5',
            'dl1', 'dl2', 'dl3', 'dl4', 'dl5',
            'cl1', 'cl2', 'cl3', 'cl4', 'cl5',
            'cs1', 'cs2', 'cs3', 'cs4', 'cs5',
            'dp1', 'dp2', 'dp3', 'dp4', 'dp5',
            'gy1', 'gy2', 'gy3', 'gy4', 'gy5',
            'xs1', 'xs2', 'xs3', 'xs4', 'xs5',
            'sz1', 'sz2', 'sz3', 'sz4', 'sz5',
            'ys1', 'ys2', 'ys3', 'ys4', 'ys5',
            'es1', 'es2', 'es3', 'es4', 'es5',
            'kg1', 'kg2', 'kg3', 'kg4', 'kg5',
            'zl1', 'zl2', 'zl3', 'zl4', 'zl5',
            'rs1', 'rs2', 'rs3', 'rs4', 'rs5',
        ];

        DB::table('admin_users')->whereIn('username', $departments)->delete();
    }
}
